package com.suarte.core.dao;

import com.suarte.core.Currency;
import com.suarte.core.ExchangeRate;
import com.suarte.core.ExchangeRateType;
import java.util.Date;
import java.util.List;
import org.appfuse.dao.GenericDao;


/**
 * @date   Dec 20, 2010
 * @author Ggutierrez
 */
public interface ExchangeRateDao extends GenericDao<ExchangeRate, Long>  {

    public ExchangeRate findByDate(Date date, Currency fromCurrency, Currency toCurrency, ExchangeRateType type);
    public List<ExchangeRate> findRates(Date date, Currency fromCurrency, Currency toCurrency, ExchangeRateType type);
}
